package com.aaa.entity;

import java.util.Date;

public class Purchase {

	private Integer pId;
	private Date businessDate;
	private String purchaseId;
	private Double amountPayable;
	private Integer purchaseState;
	private Emp emp;
	private Supplier supplier;
	private Warehouse warehouse;

	public Integer getpId() {
		return pId;
	}

	public void setpId(Integer pId) {
		this.pId = pId;
	}

	public Date getBusinessDate() {
		return businessDate;
	}

	public void setBusinessDate(Date businessDate) {
		this.businessDate = businessDate;
	}

	public String getPurchaseId() {
		return purchaseId;
	}

	public void setPurchaseId(String purchaseId) {
		this.purchaseId = purchaseId;
	}

	public Double getAmountPayable() {
		return amountPayable;
	}

	public void setAmountPayable(Double amountPayable) {
		this.amountPayable = amountPayable;
	}

	public Integer getPurchaseState() {
		return purchaseState;
	}

	public void setPurchaseState(Integer purchaseState) {
		this.purchaseState = purchaseState;
	}

	public Emp getEmp() {
		return emp;
	}

	public void setEmp(Emp emp) {
		this.emp = emp;
	}

	public Supplier getSupplier() {
		return supplier;
	}

	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}

	public Warehouse getWarehouse() {
		return warehouse;
	}

	public void setWarehouse(Warehouse warehouse) {
		this.warehouse = warehouse;
	}

	@Override
	public String toString() {
		return "Purchase{" +
				"pId=" + pId +
				", businessDate=" + businessDate +
				", purchaseId='" + purchaseId + '\'' +
				", amountPayable=" + amountPayable +
				", purchaseState=" + purchaseState +
				", emp=" + emp +
				", supplier=" + supplier +
				", warehouse=" + warehouse +
				'}';
	}
}